package com.pn.taikao.mapper;

import com.pn.taikao.entity.CheatingRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CheatingRecordMapper {
    /**
     * 插入作弊行为记录
     */
    int insert(CheatingRecord record);
    
    /**
     * 根据考试ID查询作弊行为记录
     */
    List<CheatingRecord> selectByExamId(@Param("examId") Long examId);
    
    /**
     * 根据考试ID和行为类型查询记录
     */
    List<CheatingRecord> selectByExamIdAndType(@Param("examId") Long examId, @Param("behaviorType") String behaviorType);
}


